from common.models import TbMiniappUser


def checkPassword(user: TbMiniappUser, password: str):
    """
    检查用户密码是否正确
    """
    return user.password == password
